import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
   {
    title: '考试id',
    align:"center",
    dataIndex: 'examId'
   },
   {
    title: '试卷id',
    align:"center",
    dataIndex: 'paperId'
   },
   {
    title: '考试名',
    align:"center",
    dataIndex: 'examName'
   },
   {
    title: '试卷名',
    align:"center",
    dataIndex: 'paperName'
   },
   {
    title: '试卷类型',
    align:"center",
    dataIndex: 'paperType'
   },
   {
    title: '科目id',
    align:"center",
    dataIndex: 'subjectId'
   },
   {
    title: '系统得分',
    align:"center",
    dataIndex: 'systemScore'
   },
   {
    title: '最终得分',
    align:"center",
    dataIndex: 'userScore'
   },
   {
    title: '试卷总分',
    align:"center",
    dataIndex: 'paperScore'
   },
   {
    title: '做对数量',
    align:"center",
    dataIndex: 'questionCorrect'
   },
   {
    title: '题目总数',
    align:"center",
    dataIndex: 'questionCount'
   },
   {
    title: '所花时间',
    align:"center",
    dataIndex: 'doTime'
   },
   {
    title: '状态（已批改，未批改）',
    align:"center",
    dataIndex: 'status'
   },
   {
    title: '答题人',
    align:"center",
    dataIndex: 'createUser'
   },
   {
    title: '任务id',
    align:"center",
    dataIndex: 'taskExamId'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '考试id',
    field: 'examId',
    component: 'Input',
  },
  {
    label: '试卷id',
    field: 'paperId',
    component: 'Input',
  },
  {
    label: '考试名',
    field: 'examName',
    component: 'Input',
  },
  {
    label: '试卷名',
    field: 'paperName',
    component: 'Input',
  },
  {
    label: '试卷类型',
    field: 'paperType',
    component: 'InputNumber',
  },
  {
    label: '科目id',
    field: 'subjectId',
    component: 'InputNumber',
  },
  {
    label: '系统得分',
    field: 'systemScore',
    component: 'InputNumber',
  },
  {
    label: '最终得分',
    field: 'userScore',
    component: 'InputNumber',
  },
  {
    label: '试卷总分',
    field: 'paperScore',
    component: 'InputNumber',
  },
  {
    label: '做对数量',
    field: 'questionCorrect',
    component: 'InputNumber',
  },
  {
    label: '题目总数',
    field: 'questionCount',
    component: 'InputNumber',
  },
  {
    label: '所花时间',
    field: 'doTime',
    component: 'InputNumber',
  },
  {
    label: '状态（已批改，未批改）',
    field: 'status',
    component: 'InputNumber',
  },
  {
    label: '答题人',
    field: 'createUser',
    component: 'InputNumber',
  },
  {
    label: '任务id',
    field: 'taskExamId',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];
